package Yanghuisanjiao;

import java.util.ArrayList;
import java.util.List;

public class Text {
    public static void func(String str1,String str2){
        List<Character>list=new ArrayList<>();
        for (int i = 0; i < str1.length(); i++) {
            char ch=str1.charAt(i);
            if(!str2.contains(ch+"")){
                list.add(ch);
            }
        }
       for(char ch:list){
           System.out.print(ch);
       }
        }


    public static void main(String[] args) {
        func("welcome to bit","come");
    }
}